package com.jumptap.adtag;

import android.app.Activity;
import android.util.Log;
import com.jumptap.adtag.events.EventManager;
import com.jumptap.adtag.events.EventType;
import com.jumptap.adtag.utils.JtAdManager;
import java.util.HashMap;
import java.util.Map;

public class JTAppReport
{
  private static EventType getEventType(Activity paramActivity)
  {
    String str1 = EventManager.getFirstLaunchStr();
    String str2 = JtAdManager.getPreferences(paramActivity, EventManager.getFirstPrefName(), str1);
    if ((str2 == null) || ("".equals(str2)) || (str1.equals(str2)))
      return EventType.download;
    return EventType.run;
  }

  public static void sendConversionTrackingReport(Activity paramActivity, String paramString1, String paramString2, Map<String, String> paramMap)
  {
    Log.d("JtAd", "Application request to send conversion tracking url");
    String str1 = JtAdManager.getHIDSHA1(paramActivity);
    EventType localEventType = getEventType(paramActivity);
    String str2 = EventManager.getDateByEventType(localEventType, paramActivity);
    if (paramMap == null)
      paramMap = new HashMap();
    paramMap.put("hid_sha1", str1);
    paramMap.put("app", paramString1);
    paramMap.put("appVer", paramString2);
    paramMap.put("event", localEventType.name());
    paramMap.put("date", str2);
    EventManager.sendReport(paramActivity, EventManager.buildEventTrackingUrl(paramMap), localEventType, str2);
  }
}

/* Location:           E:\android\Toy Defense 2_dex2jar.jar
 * Qualified Name:     com.jumptap.adtag.JTAppReport
 * JD-Core Version:    0.6.2
 */